<?php
include '../../comm/config.php';	
include '../check.php';
$info=include('../../data/shai.php');
if($_POST['Submit']){
    $info=$_POST['info'];
    $data = "<?php\n return ".var_export($info, true).";\n?>";
    file_put_contents('../../data/shai.php',$data);
	echo "<script>alert('修改成功')</script>";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理中心</title>
<link href="../css/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE3 {color: #FF0000}
-->
</style>
</head>
<body topmargin="5" leftmargin="0">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="282" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td>
          <table cellspacing="0" width="100%" height="207" style="border:1px  solid #DCEAF7;">
            <tr>
              <td height="30" colspan="2" bgcolor="E9F2FB" class="bigtext"><strong>&nbsp;<img src="../images/arrow.gif" width="16" height="22" align="absmiddle" />外设功能设置</strong></td>
            </tr>
            <tr>
              <td width="100%" colspan="2" valign="top"><table width="100%" height="300" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td valign="top"><form id="form1" name="form1" method="post" action="">
                    
                    <table width="100%"  align="center" border=1 cellpadding=0 cellspacing=0style="border-collapse: collapse" bordercolor="#dddddd">
                    <tr>
                        <td width="135" height="30" align="right" class="bigtext">晒宝贝奖励积分：</td>
                        <td width="" height="30" class="bigtext">&nbsp;
                          <input type="type" value="<?=$info['shai_jifen']?>" style="width:30px" name="info[shai_jifen]" /> (会员每次晒单给会员的奖励积分)                    
                        </td>
                      </tr>
                      <tr>
                        <td width="" height="30" align="right" class="bigtext">分享宝贝奖励积分：</td>
                        <td width="" height="30" class="bigtext">&nbsp;
                          <input type="text" style="width:30px" name="info[share_jifen]" value="<?=$info['share_jifen']?>" /> (会员每次分享给会员的奖励积分)                     
                        </td>
                      </tr>
                      <tr>
                        <td width="" height="30" align="right" class="bigtext">红心奖励积分：</td>
                        <td width="" height="30" class="bigtext">&nbsp;
                          <input type="text" style="width:30px" name="info[hart_jifen]" value="<?=$info['hart_jifen']?>" /> (会员分享或晒单的商品，如有会员给他送红心，该会员的奖励积分)                   
                        </td>
                      </tr>
                      <tr>
                      <tr>
                        <td width="" height="30" align="right" class="bigtext">分享评论等级：</td>
                        <td width="" height="30" class="bigtext">&nbsp;
                          <input type="text" style="width:30px" name="info[limit_level]" value="<?=$info['limit_level']?>" /> (会员等级达到要求，才拥有分享和评论的功能)                   
                        </td>
                      </tr>
                      <tr>
                        <td width="" height="30" align="right" class="bigtext">记录淘宝cid：</td>
                        <td width="" height="30" class="bigtext">&nbsp;
                        <select name="info[re_tao_cid]"><option <?php if($info['re_tao_cid']==0){?> selected="selected"<?php }?> value="0">关闭</option><option <?php if($info['re_tao_cid']==1){?> selected="selected"<?php }?> value="1">开启</option></select>(记录淘宝商品cid)                   
                        </td>
                      </tr>
                      <tr>
                        <td width="" height="30" align="right" class="bigtext">晒带开始日期：</td>
                        <td width="" height="30" class="bigtext">&nbsp;
                          <input type="text" style="width:130px" name="info[shai_s_time]" value="<?=$info['shai_s_time']?>" /> (允许会员从何时开始晒单)                   
                        </td>
                      </tr>
                     <tr>
                        <td width="135" height="30" align="right" class="bigtext">栏目分类：</td>
                        <td width="" height="30" class="bigtext">&nbsp;
                          <?php 
						  foreach($info['shai_cat'] as $k=>$v){?>
                          <input type="text" style="width:35px" value="<?=$v?>" name="info[shai_cat][<?=$k?>]" /> 
                          <?php }?>
                        </td>
                      </tr>
                      <tr>
                        <td height="30" align="right">&nbsp;</td>
                        <td height="30" class="bigtext">&nbsp;
                          <input type="submit" name="Submit" value=" 保 存 设 置 " /> 
                          &nbsp;&nbsp;&nbsp;</td>
                      </tr>
                    </table>
                    
                    
                    <br />
                  </form>
                  </td>
                </tr>
              </table></td>
            </tr>
          </table></td>
        </tr>
      
    </table></td>
  </tr>
</table>
</body>
</html>
<?php mysql_close();?>
